package com.gxa.hystrix.controller;

import com.gxa.hystrix.pojo.BingLi;
import com.gxa.hystrix.pojo.TeSeChuFang;
import com.gxa.hystrix.service.BinLiservice;
import com.gxa.hystrix.service.TeSeChuFangservice;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author thinknovo
 * @version 1.0
 * @description guahaocontroller.java
 * @date 2021/3/25 15:36
 */
@RestController
@RequestMapping(value = "bingLi", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class BinLicontroller {
    @Resource

    private BinLiservice binLiservice;

    @GetMapping("chaXunAll")
    public Map chaXunAll(String guaHaoJiLuId) {
        return binLiservice.chaXunAll(guaHaoJiLuId);
    }

    @PostMapping("xinZeng")
    public Map xinZeng(@RequestBody BingLi bingLi) {
        return binLiservice.xinZeng(bingLi);
    }


}